<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Wewenang {

    public static function status_int_string($status) {
        $sts = '';

        switch ($status) {
            case '1':
                $sts = 'Admin';
                break;
            case '2':
                $sts = 'Satker';
                break;
            case '3':
                $sts = 'KPPN';
                break;
            case '4':
                $sts = 'PKN';
                break;
            case '5':
                $sts = 'Kanwil';
                break;
            case '6':
                $sts = 'DJA';
                break;
            case '7':
                $sts = 'BLU';
                break;
            case '8':
                $sts = 'Bank';
                break;
            case '9':
                $sts = '';
                break;
            case '10':
                $sts = '';
                break;
            case '11':
                $sts = 'KL';
                break;
            case '12':
                $sts = 'ES1';
                break;
            case '13':
                $sts = 'UMADMIN';
                break;
            case '14':
                $sts = 'Menkeu';
                break;
            case '15':
                $sts = 'SUPER';
                break;
        }

        return $sts;
    }

    public static function status_string_int($status) {
        $sts = '';

        switch ($status) {
            case 'Admin':
                $sts = '1';
                break;
            case 'Satker':
                $sts = '2';
                break;
            case 'KPPN':
                $sts = '3';
                break;
            case 'PKN':
                $sts = '4';
                break;
            case 'Kanwil':
                $sts = '5';
                break;
            case 'DJA':
                $sts = '6';
                break;
            case 'BLU':
                $sts = '7';
                break;
            case 'Bank':
                $sts = '8';
                break;
            case '':
                $sts = '9';
                break;
            case '':
                $sts = '10';
                break;
            case 'KL':
                $sts = '11';
                break;
            case 'ES1':
                $sts = '12';
                break;
            case 'UMADMIN':
                $sts = '13';
                break;
            case 'Menkeu':
                $sts = '14';
                break;
            case 'SUPER':
                $sts = '15';
                break;
        }
        return $sts;
    }

}
